home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 …ember: Reference Library / Dev.CD Dec 96 RL / Dev.CD Dec 96 RL.toast / Technical Documentation / develop / Additional Articles / Timing on the Macintosh / Timing Code / Src / MicrosecondTrapTest.r < prev   
Encoding:
Text File  |  1995-04-17  |  1.6 KB  |  92 lines  |  [TEXT/KAHL]

  1. /*                                    MicrosecondTrap.r                                */
  2. /*
  3.  * MicrosecondTrap.r
  4.  * Copyright © 1994 Apple Computer Inc.
  5.  */
  6. #define REZ
  7. #include "Types.r"
  8. #include "SysTypes.r"
  9. #include "MicrosecondTrapTest.h"
  10.  
  11. #ifdef __powerc
  12. /*
  13.  * All Power PC applications need a code-fragment resource that the code
  14.  * fragment manager uses to facilitate dynamic fragment binding.
  15.  */
  16. #include "CodeFragmentTypes.r"
  17.     
  18. resource 'cfrg' (0) {
  19.     {
  20.         kPowerPC,
  21.         kFullLib,
  22.         kNoVersionNum,
  23.         kNoVersionNum,
  24.         kDefaultStackSize,
  25.         kNoAppSubFolder,
  26.         kIsApp,
  27.         kOnDiskFlat,
  28.         kZeroOffset,
  29.         kWholeFork,
  30.         "SCSIDriveIDSample"
  31.     }
  32. };
  33. #endif
  34.  
  35.  
  36. resource 'DLOG' (DLOG_Hello, "Hello There") {
  37.     {100, 80, 140, 260},
  38.     dBoxProc,
  39.     visible,
  40.     noGoAway,
  41.     0x0,
  42.     DLOG_Hello,
  43.     ""
  44. };
  45.  
  46. resource 'DITL' (DLOG_Hello, "Hello There") {
  47.     {
  48.         { 10,  10,  30, 176}, StaticText    { disabled, "Please click the mouse."    },
  49.     }
  50. };
  51.  
  52. resource 'ALRT' (DLOG_Goodbye, "Goodbye for now", purgeable) {
  53.     {100, 80, 200, 440},
  54.     DLOG_Goodbye,
  55.     {
  56.         OK, visible, silent,
  57.         OK, visible, silent,
  58.         OK, visible, silent,
  59.         OK, visible, silent
  60.     }
  61. };
  62.  
  63. resource 'DITL' (DLOG_Goodbye, "Goodbye for now", purgeable) {
  64.     {
  65.         { 70, 250,  90, 350}, Button        { enabled,    "OK"                        },
  66.         { 10, 110,  60, 350}, StaticText    { disabled,
  67.                 "You clicked for ^0 Seconds."    },
  68.     }
  69. };
  70.  
  71. resource 'ALRT' (ALRT_Error, "Error", purgeable) {
  72.     {100, 80, 230, 422},
  73.     ALRT_Error,
  74.     {
  75.         OK, visible, silent,
  76.         OK, visible, silent,
  77.         OK, visible, silent,
  78.         OK, visible, silent
  79.     }
  80. };
  81.  
  82. resource 'DITL' (ALRT_Error, "Error", purgeable) {
  83.     {
  84.         {100, 220, 120, 322}, Button        { enabled,    "OK"                    },
  85.         { 10, 110,  96, 324}, StaticText    { disabled,
  86.             "System Error (^0) ^1."    },
  87.     }
  88. };
  89.  
  90.  
  91.  
  92.